.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.register-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
  }
}

.header {
  text-align: center;
  margin-bottom: 32px;

  h2 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
  }

  p {
    color: #666;
    margin: 0;
    font-size: 14px;
  }
}

.register-form {
  .ant-form-item {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .ant-input-group {
    .ant-input {
      padding: 12px 15px 12px 40px;
      font-size: 14px;
      border: 1px solid #d9d9d9;
      border-radius: 6px;
      transition: all 0.3s;

      &:focus,
      &:hover {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
      }

      &.error {
        border-color: #ff4d4f;
        box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
      }
    }

    .ant-input-prefix {
      color: #bfbfbf;
    }
  }

  .ant-checkbox-wrapper {
    font-size: 14px;
    color: #666;

    a {
      color: #667eea;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .ant-btn {
    height: 44px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border: none;
    margin-top: 8px;

    &:hover {
      opacity: 0.9;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    &:disabled {
      background: #f5f5f5;
      color: #bfbfbf;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }
  }
}

.login-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #666;

  a {
    color: #667eea;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;

    &:hover {
      text-decoration: underline;
    }
  }
}

// 错误提示样式
.ant-form-item-explain-error {
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 4px;
}

// 响应式设计
@media (max-width: 480px) {
  .register-container {
    padding: 10px;
  }

  .register-box {
    padding: 30px 20px;
  }

  .header h2 {
    font-size: 24px;
  }
} 